import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
const home = ()=>import("@/views/home.vue")
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: home
  },
  {
    path: "/login",
    name: "Login",
    component: () =>import("@/views/Login.vue"),
  },
]
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
  });

  router.beforeEach((to, from, next) => {
  
   console.log(123,home);
   
  
  })
export default router;